$(function (){
    queryZmtz();
});

function queryZmtz(){
    url = baseURL + "sys/dataoverview/countdata";
    $.ajax({
        type: "POST",
        url: url,
        contentType: "application/json",
        success: function(r) {
            if (r.code == 0) {
                //24小时下单数
                $("#todayAgreement").text(r.map.todayAgreement);
                //24小时下单金额
                $("#totalAgreement").text(r.map.totalAgreement);
                //24小时注册数
                $("#todayAufi").text(r.map.todayAufi);
                //平台总业绩
                $("#totalAufi").text(r.map.totalAufi);
                //余额积分总数
                $("#todayAufi1").text(r.map.todayAufi1);
                //康豆总数
                $("#totalAufi1").text(r.map.totalAufi1);
                //可用佣金总数
                $("#todayAufi3").text(r.map.todayAufi3);
                //限制金额总数
                $("#totalAufi3").text(r.map.totalAufi3);
                //提现金额总数
                $("#todayWithdraw").text(r.map.todayWithdraw);
                //奖励总金额
                $("#totalWithdraw").text(r.map.totalWithdraw);
                $("#price").text(r.map.price);
            }
        }
    });
}
